package com.xxxx.manager.service;

import com.xxxx.common.result.RespBean;
import com.xxxx.manager.pojo.Goods;
import com.xxxx.manager.pojo.GoodsCategory;


import java.util.List;

public interface GoodsCategoryService {

    /**
     * 商品分类-新增分类，查询所有顶级分类
     *
     * @return
     */
    List<GoodsCategory> selectCategoryTopList();

    List<GoodsCategory> selectListByParentId(Short id);

    /**
     * 查询级联列表
     *
     * @return
     */
    List<GoodsCategory> selectGoodsCategoryAll() throws Exception;


    /**
     * 增加分类提交数据
     *
     * @param goodsCategory
     * @return
     */
    RespBean insertGoodsCategory(GoodsCategory goodsCategory);


    RespBean insetGoods(Goods goods);
}

